<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
		<link rel="stylesheet" href="style.css">
	</head>
<title>Add Link</title>
</head>

<body>

<p><b>Feature Name:</b> Add/Update Link<br><b>Feature URL:</b>&nbsp; /api/links/add_link.php<br>
<b>Parameters: </b><br>&nbsp;&nbsp;&nbsp;
verbose<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- Activates verbose mode, Integer(0-disabled, 1-enabled), Optional<br>&nbsp;&nbsp;&nbsp;
title<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- Title given to the url, String, Optional<br>&nbsp;&nbsp;&nbsp;
url<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- Link's Url, string, Not Optional<br>&nbsp;&nbsp;&nbsp;
description<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- Link's description, string, Optional<br>&nbsp;&nbsp;&nbsp;
tag_list<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- Link's Tag, array, Optional<br>&nbsp;&nbsp;&nbsp;
shared<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- Defines if link is public or not, Integer(0-public, 1-private), Optional (0 by 
default)<br>&nbsp;&nbsp;&nbsp; xml<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- Defines if returns xml, Integer(0-disabled, 1-enabled), Optional (0 by 
default)
<br><br><b>Examples:</b><br>/api/links/add_link.php?&amp;url=www.facebook.com<br>/api/links/add_link.php?&amp;url=www.facebook.com&amp;tag_list=face,book<br>/api/links/add_link.php?&amp;url=www.facebook.com&amp;verbose=1<br>/api/links/add_link.php?&amp;url=www.facebook.com&amp;title=Facebook<br>/api/links/add_link.php?&amp;url=www.facebook.com&amp;title=Facebook&amp;description=This is a 
description<br>/api/links/add_link.php?&amp;url=www.facebook.com&amp;title=Facebook&amp;shared=1</p>
<b>Output :</b>
<br>{"Result":{"AddLink":"success"}}<br>
{"Result":{"AddLink":"noUrlError"}}<br>
{"Result":{"AddLink":"notLoggedIn"}}<br>
{"Result":{"AddLink":"dbError"}}<br>

</body>
</html>
<xmp>
<?xml version="1.0"?>
<Result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://gnomo.fe.up.pt/~ei10048/trabalho2/xsd.xsd">
	<AddLink>Success</AddLink>
</Result>

<?xml version="1.0"?>
<Result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://gnomo.fe.up.pt/~ei10048/trabalho2/xsd.xsd">
	<AddLink>noUrlError</AddLink>
</Result>

<?xml version="1.0"?>
<Result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://gnomo.fe.up.pt/~ei10048/trabalho2/xsd.xsd">
	<AddLink>notLoggedInError</AddLink>
</Result>

<?xml version="1.0"?>
<Result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://gnomo.fe.up.pt/~ei10048/trabalho2/xsd.xsd">
	<AddLink>dbError</AddLink>
</Result>